package com.example.ssm.Controller;

import com.example.ssm.Bean.Account;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @create 2022-03-2022/3/6-14:15
 */
@Controller
public class HelloController {
    //测试
    @RequestMapping("/hello")
    public String test(){
        return "index";
    }
    //保存
    @RequestMapping("/save")
    public  String save(Account account){
        return "saveAccount";
    }
    //查询
    @RequestMapping("/findAll")
    public String findALL(){
        return "AccountList";
    }
}
